package com.atguigu.gmall.impl;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.list.model.SearchParam;
import com.atguigu.gmall.ListFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class ListDegradeFeignClient implements ListFeignClient {
    @Override
    public void incrHotScore(Long skuId) {
        log.error("服务降级了,{}");
    }

    /**
     * 商品检索
     * @param searchParam
     * @return
     */
    @Override
    public Result search(SearchParam searchParam) {
        log.error("服务降级了,{}");
        return null;
    }
}